package java69.work716;


import java.util.Scanner;

public class Studenttest {
    static Scanner scanner = new Scanner(System.in);

    static Student student2 =new Student();


    public void shoose(){
        int num = 0;
        boolean isExit = false;
        do{
        System.out.println("请选择操作");
        System.out.println("\t1.学习");
        System.out.println("\t2.说话");
        System.out.println("\t3.睡觉");
        System.out.println("\t4.增加学生");
        System.out.println("\t5.选择学生");
        System.out.println("\t6.退出");
            int menuNum = scanner.nextInt();
            switch (menuNum){
                case 1:
                    student2.study();
                    break;
                case 2:
                    student2.talk();
                    break;
                case 3:
                    student2.sleep();
                    break;
                case 4:
                    student2.writter();
                    break;
                case 5:
                    student2.choose();
                    break;
                case 6:
                    isExit = true;
                    break;
                default:
                    System.out.println("输入错误！");
            }
            if(isExit){
                break;
            }else {
                System.out.println("输入0返回菜单，请输入：");
                num = scanner.nextInt();
            }
        }while (num==0);
        System.out.println("感谢使用本系统，欢迎下次使用");

    }

    public static void main(String[] args) {

        System.out.println("请选择操作");
    }
}
